package jzqb.service;

import haha.life.common.CutPageBean;
import jzqb.bo.AdminPermissionGroupBo;
import jzqb.bo.AdminPermissionGroup_getuserBo;
import jzqb.bo.QBZSBo;
import jzqb.bo.StandardBo;
import jzqb.common.Result;
import jzqb.po.AdminPermissionGroupPo;
import jzqb.po.AdminUserPo;


public interface AdminPermissionService {

    CutPageBean<AdminPermissionGroupPo> cutPage(AdminPermissionGroupBo adminPermissionGroupBo);
    CutPageBean<AdminUserPo> cutPage_(AdminPermissionGroup_getuserBo adminUserInfoBo);
    CutPageBean<AdminUserPo> cutPage_switchShow(AdminPermissionGroup_getuserBo adminUserInfoBo);
    Boolean addeditPermissionGroup(AdminPermissionGroupPo adminPermissionGroupPo);
    Boolean deletePermissionGroup(AdminPermissionGroupPo adminPermissionGroupPo);
    Result getPermissionTreeExisted(String permissionGroupID);
    boolean checkDataPermission(String userid, QBZSBo qbzsBo,String accessType);

    /***
     * 记录浏览和下载日志
     * @param operateType 浏览/下载  p/d
     * @param userId 用户id
     * @param bo 访问对象
     * @return 插入结果
     */
    boolean addBrowseDownLoadLog(String operateType, String userId, StandardBo bo);
}
